import request from '@/utils/request';

export async function getDictTypeByPage(params: any) {
  return request('/api/service/getDictTypeByPage', {
    method: 'POST',
    data: params,
  });
}

export async function addDictType(params: any) {
  return request('/api/service/addDictType', {
    method: 'POST',
    data: params,
  });
}

export async function updateDictType(params: any) {
  return request('/api/service/updateDictType', {
    method: 'POST',
    data: params,
  });
}

export async function delDictType(params: any) {
  return request('/api/service/delDictType', {
    method: 'POST',
    data: params,
  });
}
export default { getDictTypeByPage, addDictType, updateDictType, delDictType };
